﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TCDMaster.Master" AutoEventWireup="true" CodeBehind="CapNhatNguoiDung.aspx.cs" Inherits="TraCuuDiemNhom3.CapNhatNguoiDung" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <center>
   &nbsp; Form Cập Thông Tin Người Dùng</center>
   
   <br />
   <asp:GridView ID="gvNguoiDung" runat="server" EnableModelValidation="True" 
        AutoGenerateColumns="False" CellPadding="4" 
        ForeColor="#333333" GridLines="None" Width="666px">
       <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="UserName" HeaderText="Tên đăng nhập" />
         <asp:TemplateField HeaderText="Mật khẩu">
            <ItemTemplate >
                <asp:TextBox id="txtpw" Text='<%#Eval("[PassWord]")%>' Width=80 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
            
        <asp:TemplateField HeaderText="Họ tên">
        <ItemTemplate >
                <asp:TextBox id="txtht"  Text='<%#Eval("HoTen")%>' Width=100  runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="Giới tính">
            <ItemTemplate >
                <asp:TextBox id="txtgt"  Text='<%#Eval("GioiTinh")%>' Width=30 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="Ngày sinh">
            <ItemTemplate >
                <asp:TextBox id="txtns" Text='<%#Eval("NgaySinh")%>'   Width="80" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="Chức vụ" >
            <ItemTemplate >
                <asp:TextBox id="txtcv"  Text='<%#Eval("ChucVu")%>' Width=80 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
         <asp:TemplateField HeaderText="Quyền" >
            <ItemTemplate >
                <asp:TextBox id="txtqu"  Text='<%#Eval("Quyen")%>' Width=50 runat="server" />
                <asp:HiddenField ID="hidenUserName" Value='<%#Eval("UserName")%>'  runat="server"  />
            </ItemTemplate>
        </asp:TemplateField>
      
    </Columns>
       <EditRowStyle BackColor="#7C6F57" />
       <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
       <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
       <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
       <RowStyle BackColor="#E3EAEB" />
       <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
</asp:GridView>
    <asp:Button ID="btnSave" runat="server" Text="Lưu" Width="121px" 
        onclick="btnSave_Click" />
           
                         
                        
    <asp:Button ID="btnCancel" runat="server" Text="Hủy" Width="111px"   
        onclick="btnCancel_Click" />
            <asp:Label ID="Label1" runat="server" Text="Nguyễn Văn Chung" 
        Visible="False"></asp:Label>

            <asp:LinkButton ID="btnDelete" runat="server" 
                    onclick="btnDelete_Click_Click" 
        PostBackUrl="~/DaoTao/XoaDiemSV.aspx">Xóa Người dùng</asp:LinkButton>

                         
       
    <br />

</asp:Content>
